-- GENERATED SPELL FOR [Loot Crazed Diver] --


function spell0_25836(pUnit, Event) --@Crazed,Self--
pUnit:FullCastSpellOnTarget(5915,pUnit)
pUnit:RegisterEvent('Sorts_25836', 539, 1)
end

function Sorts_25836(pUnit, Event)
local choix_sorts_25836 = math.random(0, 0)
if choix_sorts_25836 == 0 then
pUnit:RegisterEvent('spell0_25836', 1, 1)
end
end

function mob25836_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25836', math.random(1500, 3000), 1)
end

function mob25836_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25836_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25836_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25836, 1, 'mob25836_Action')
RegisterUnitEvent(25836, 2, 'mob25836_Leave')
RegisterUnitEvent(25836, 3, 'mob25836_Kill')
RegisterUnitEvent(25836, 4, 'mob25836_Die')
